<%@ page pageEncoding='UTF-8' contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="/WEB-INF/common/header.jsp"%>

<form action="${pageContext.request.contextPath}/cc/rental/list" accept-charset="UTF-8" method="post">
    <input type="hidden" name="customer_id" value="${param.customer_id}"/>
    <label>Количество дней аренды:
        <input type="text" name="daysRented" value=""/>
    </label>
    <br>
    <label>Выбор фильма :</label>
        <table cellspacing="2" cellpadding="2" border="1" width="100%" bordercolor="black">
            <c:forEach items="${requestScope.movieList}" var="movie">
                <tr>
                    <td>
                        <input type="radio" name="movieId" value="${movie.id}"/>
                    </td>
                    <td>${movie.title}</td>
                    <td>${movie.priceCode}</td>
                </tr>
            </c:forEach>
        </table>
    <br>
    <input type="submit" value="Погнали"/>
</form>

<%@include file="/WEB-INF/common/footer.jsp"%>